package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyCommentReply;
import cn.wolfcode.trip.base.domain.TravelReply;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface TravelReplyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TravelReply record);

    TravelReply selectByPrimaryKey(Long id);

    int updateByPrimaryKey(TravelReply record);

    List<TravelReply> selectForList(QueryObject qo);

    /**
     * 根据点评id查询评论数量
     * @param strategyCommentId
     * @return
     */
    int getCountByTravelId(Long travelId);
}